package com.isoftstone.common.service;


import com.isoftstone.common.Page;
import com.isoftstone.common.entity.SysMenu;
import com.isoftstone.common.entity.SysUser;


import java.util.List;

public interface ISysMenuService {

    SysMenu getMenuById(String menuId)throws Exception;

    SysMenu getMenuByPermission(String permission)throws Exception;

    List<SysMenu> getMenulistPage(Page page) throws Exception;

    List<SysMenu> getMenuAll() throws Exception;

    String[] getMenusParentIds(String menuIds[]);

    void saveSysMenu(SysMenu menu)throws Exception;

    void updateSysMenu(SysMenu menu)throws Exception;

    void deleteSysMenu(String menuId)throws Exception;

    List<SysMenu> getMenuByUrl(SysUser sysUser, String menuId)throws Exception;

    List<SysMenu> getMenuByRoleId(String roleId)throws Exception;

    List<SysMenu> getMenuByParentId(String parentId)throws Exception;

    List<SysMenu> getMenuByUserId(String userId)throws Exception;

    List<SysMenu> YgetMenuByUrl(SysUser sysUser, String menuId) throws Exception;

    String getMenuNameByMenuId(String s)throws Exception;
        //根据管理员类型查询菜单
    List<SysMenu> getMenuByUserType(String type)throws Exception;
}
